#交互
execute unless block ~ ~ ~ barrel{Items:[{Slot:16b,tag:{tag:{id:"fisland:index"}}}]} run function fislandpp:machines/hand_grinder/grind
#控制
execute unless block ~ ~ ~ barrel{Items:[{Slot:0b,tag:{CustomModelData:580003}}]} run function fislandpp:machines/hand_grinder/remove
execute if block ~ ~ ~ barrel{Items:[{Slot:6b}]} run function fislandpp:machines/hand_grinder/remove
execute if block ~ ~ ~ barrel{Items:[{Slot:7b}]} run function fislandpp:machines/hand_grinder/remove
execute if block ~ ~ ~ barrel{Items:[{Slot:8b}]} run function fislandpp:machines/hand_grinder/remove
execute if block ~ ~ ~ barrel{Items:[{Slot:15b}]} run function fislandpp:machines/hand_grinder/remove
execute unless block ~ ~ ~ barrel{Items:[{Slot:16b,tag:{tag:{id:"fisland:index"}}}]} run function fislandpp:machines/hand_grinder/remove
execute if block ~ ~ ~ barrel{Items:[{Slot:17b}]} run function fislandpp:machines/hand_grinder/remove
execute if block ~ ~ ~ barrel{Items:[{Slot:24b}]} run function fislandpp:machines/hand_grinder/remove
execute if block ~ ~ ~ barrel{Items:[{Slot:25b}]} run function fislandpp:machines/hand_grinder/remove
execute if block ~ ~ ~ barrel{Items:[{Slot:26b}]} run function fislandpp:machines/hand_grinder/remove
replaceitem block ~ ~ ~ container.0 light_blue_dye{tag: {id: "fisland:index"}, CustomModelData: 580003, display: {Name: '[{"text":"手摇粉碎机","italic": false}]'}}